package com.zh.remote.api;

import com.zh.constants.Constants;
import com.zh.remote.fallback.BigdataApiFallback;
import com.zh.remote.pojo.param.DriverPointResult;
import com.zh.result.JSONResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * 远程调用司机坐标 接口
 */
@FeignClient(value = Constants.Remote.SERVICE_BIGDATA,fallbackFactory = BigdataApiFallback.class )
@Tag(name = "司机坐标Api",description = "司机坐标Api")
public interface BigdataApi {

    @Operation( summary= "远程查询司机坐标",description = "远程查询乘客罚款")
    @Parameter(name = "orderNo",description = "订单号Id",required = true)
    @PostMapping("/remote/driver/point/list/{orderNo}")
    JSONResult<List<DriverPointResult>> selectDriverPointByOrderNo(@PathVariable("orderNo") String orderNo);

}


